/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package forumgui;

import GuiClient.TelnetClient;
import TamirsGui.CreateMsgToServer;

/**
 *
 * @author Roy
 */
public class SenderThread implements Runnable{

    
    private TelnetClient sendMsgToServer;
    private String msg;
    
    public SenderThread(TelnetClient sendMsgToServer,String msg)
    {
        this.sendMsgToServer = sendMsgToServer;
        this.msg = msg;
    }
    
    public void run() {
        
        sendMsgToServer.sendMessageToServer(msg);
    }
    
}
